package com.zcy.nidavellir.multilogin.Utils

import android.app.Application
import android.content.Context
import com.tencent.mm.opensdk.modelmsg.SendAuth
import com.tencent.mm.opensdk.openapi.WXAPIFactory
import com.zcy.nidavellir.multilogin.App

/**
 * @author:       zhaocy
 * @description:  ${DESP}
 * @date:         2018/9/28
 */

val wxApi = WXAPIFactory.createWXAPI(App.instance, "123", true)

fun openWechat() {
    val req = SendAuth.Req()
    req.scope = "snsapi_userinfo"
    req.state = "AccountOperation"
    wxApi.sendReq(req)
}
